	<div class="Main_Right" >
		<div class="Main_Right_Top"><span></span></div>
		<div class="Main_Right_Content" id="Main_Right_Content">
			  <div class="Main_Right_Title">当前位置：学校管理 --> 课程管理 --> 编辑课程  </div>
              <!-- Main_information begin -->
			  <div class="Main_handleBar check_pass" id="Main_handleBar" style="display: none"   >
					<div class="Main_handleBar_head"></div>
					<div class="Main_handleBar_body">
						<p></p>
					</div>
			  </div>
			  <form name="thisForm"  id="thisForm" method="post" action="${base}/course/edit.action" >
				<input type=hidden name="course.id" id="id" value=${course.id}>
				<input type=hidden name=isAdmin value=>
			   <div class="Main_Right_ListTable">
					<div class="Main_Right_SearchTable_Title">
						<span class="Main_Right_SearchTable_Title_Left"></span>
						基本信息
						<span class="Main_Right_SearchTable_Title_Right"></span>
					</div>
					<div class="Main_Right_p"  style="padding-left:10px">
						<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="newTable">
							<tr>
								<td class="title"  width="8%">课程中文名：</td>
								<td class="content"  width="14%">
									<input type="text" class="addtext" id="chineseName" name="course.chineseName" value="${(course.chineseName)?if_exists}"/>
								</td>			
								<td class="title"  width="8%">课程英文名：</td>
								<td class="content"  width="14%">
									<input type="text" class="addtext" id="englishName" name="course.englishName" value="${(course.englishName)?if_exists}"/>
								</td>
								<td></td>
								<td></td>
							</tr>			
						</table>
					</div>
		  			<div class="Main_Right_SearchTable_Bottom2"  style="text-align:center;">
						<div  role="button" tabindex="0" class="js-component-button nui-mainBtn nui-btn ">
							<span class="nui-btn-text" onclick="toSubmit();"  >保存</span>
						</div>
						<div  role="button" tabindex="0" class="js-component-button nui-mainBtn nui-btn ">
							<span class="nui-btn-text" onclick="goBack('${base}/course/list.action')" >返回</span>
						</div>
		 			 </div>
			    </div>
				</form>
		 </div>
	 </div>
	 <script> 
jQuery(document).ready(function($){
		$("table").find("td").removeClass("title");
		$("table").find("td").removeClass("content1");
		$("table").find("th").addClass("nui-table-cell");
		$("table").find("td").addClass("nui-table-cell2");
		$("table").find("input").attr("size","25");
	 	$( "#businessDate" ).datepicker();
		$( "#businessDate" ).datepicker( "option", "dateFormat",'yy-mm-dd' );	
	 	$( "#sendGoodsTime" ).datepicker();
		$( "#sendGoodsTime" ).datepicker( "option", "dateFormat",'yy-mm-dd' );			
});		
function toSubmit(){
		 var form=document.getElementById("thisForm");
	     if(jQuery("#thisForm").valid()){
            $("#thisForm").ajaxSubmit({  
                    type: 'post',  
                    url: "${base}/course/edit.action" ,  
                    success: function(data){  
                        loadNewContent('${base}/course/list.action');
                    },  
                    error: function(XmlHttpRequest, textStatus, errorThrown){  
                        alert( "error");  
                    }  
            }); 
		}
}  
//表单验证
jQuery(document).ready(function() {
		var validator = jQuery("#thisForm").validate({
			errorElement: "em",    
			errorPlacement: function(error, element) {
			    if(error!=null && error!=""){
					error.appendTo( element.parent("td") );  
				}
			},
			rules: {  
				'course.chineseName': { 
					required:true,
					maxlength:250
				},
				'course.englishName': { 
					required:true,  
					maxlength:250
				}
			},
			messages: { 
				'course.chineseName': {
					required: '必填',
					maxlength: '最多输入250个字符'
				},
				'course.englishName': {
					required: '必填',
					maxlength: '最多输入250个字符'
				}
			}
		});
	});
</script>